package com.bl.student.dao.repository;

import com.bl.student.common.enums.ApplyType;
import com.bl.student.dao.model.UserApplyEntity;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by yujingyi on 2018/3/21.
 */
public interface UserApplyRepository extends PagingAndSortingRepository<UserApplyEntity, String> {
    List<UserApplyEntity> findByUserIdAndType(String userId, ApplyType type);

    List<UserApplyEntity> findByBizIdAndType(String bizId, ApplyType type);

    void deleteByUserIdAndType(String userId, ApplyType applyType);
}
